//
//  User.m
//  豆瓣
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "User.h"

@implementation User

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.user forKey:@"user"];
    [aCoder encodeObject:self.passwd forKey:@"passwd"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.user = [aDecoder decodeObjectForKey:@"user"];
        self.passwd = [aDecoder decodeObjectForKey:@"passwd"];
    }
    return self;
}

@end
